Optimal. Leaf size=161 \[ -\frac{2 (a+b x)^{5/2} \left (-6 a^2 e^2+6 a b d e+b^2 \left (-\left (2 c e+d^2\right )\right )\right )}{5 b^5}+\frac{4 (a+b x)^{3/2} (b d-2 a e) \left (a^2 e-a b d+b^2 c\right )}{3 b^5}+\frac{2 \sqrt{a+b x} \left (a^2 e-a b d+b^2 c\right )^2}{b^5}+\frac{4 e (a+b x)^{7/2} (b d-2 a e)}{7 b^5}+\frac{2 e^2 (a+b x)^{9/2}}{9 b^5} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.105497, antiderivative size = 161, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.045, Rules used = {698} \[ -\frac{2 (a+b x)^{5/2} \left (-6 a^2 e^2+6 a b d e+b^2 \left (-\left (2 c e+d^2\right )\right )\right )}{5 b^5}+\frac{4 (a+b x)^{3/2} (b d-2 a e) \left (a^2 e-a b d+b^2 c\right )}{3 b^5}+\frac{2 \sqrt{a+b x} \left (a^2 e-a b d+b^2 c\right )^2}{b^5}+\frac{4 e (a+b x)^{7/2} (b d-2 a e)}{7 b^5}+\frac{2 e^2 (a+b x)^{9/2}}{9 b^5} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 698
Rubi steps
\begin{align*} \int \frac{\left (c+d x+e x^2\right )^2}{\sqrt{a+b x}} \, dx &=\int \left (\frac{\left (b^2 c-a b d+a^2 e\right )^2}{b^4 \sqrt{a+b x}}+\frac{2 (b d-2 a e) \left (b^2 c-a b d+a^2 e\right ) \sqrt{a+b x}}{b^4}+\frac{\left (-6 a b d e+6 a^2 e^2+b^2 \left (d^2+2 c e\right )\right ) (a+b x)^{3/2}}{b^4}+\frac{2 e (b d-2 a e) (a+b x)^{5/2}}{b^4}+\frac{e^2 (a+b x)^{7/2}}{b^4}\right ) \, dx\\ &=\frac{2 \left (b^2 c-a b d+a^2 e\right )^2 \sqrt{a+b x}}{b^5}+\frac{4 (b d-2 a e) \left (b^2 c-a b d+a^2 e\right ) (a+b x)^{3/2}}{3 b^5}-\frac{2 \left (6 a b d e-6 a^2 e^2-b^2 \left (d^2+2 c e\right )\right ) (a+b x)^{5/2}}{5 b^5}+\frac{4 e (b d-2 a e) (a+b x)^{7/2}}{7 b^5}+\frac{2 e^2 (a+b x)^{9/2}}{9 b^5}\\ \end{align*}
Mathematica [A] time = 0.15182, size = 155, normalized size = 0.96 \[ \frac{2 \sqrt{a+b x} \left (24 a^2 b^2 \left (2 e \left (7 c+e x^2\right )+7 d^2+6 d e x\right )-32 a^3 b e (9 d+2 e x)+128 a^4 e^2-4 a b^3 \left (21 c (5 d+2 e x)+x \left (21 d^2+27 d e x+10 e^2 x^2\right )\right )+b^4 \left (315 c^2+42 c x (5 d+3 e x)+x^2 \left (63 d^2+90 d e x+35 e^2 x^2\right )\right )\right )}{315 b^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 194, normalized size = 1.2 \begin{align*}{\frac{70\,{e}^{2}{x}^{4}{b}^{4}-80\,a{b}^{3}{e}^{2}{x}^{3}+180\,{b}^{4}de{x}^{3}+96\,{a}^{2}{b}^{2}{e}^{2}{x}^{2}-216\,a{b}^{3}de{x}^{2}+252\,{b}^{4}ce{x}^{2}+126\,{b}^{4}{d}^{2}{x}^{2}-128\,{a}^{3}b{e}^{2}x+288\,{a}^{2}{b}^{2}dex-336\,a{b}^{3}cex-168\,a{b}^{3}{d}^{2}x+420\,{b}^{4}cdx+256\,{a}^{4}{e}^{2}-576\,{a}^{3}bde+672\,{a}^{2}{b}^{2}ce+336\,{a}^{2}{b}^{2}{d}^{2}-840\,a{b}^{3}cd+630\,{c}^{2}{b}^{4}}{315\,{b}^{5}}\sqrt{bx+a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.931278, size = 320, normalized size = 1.99 \begin{align*} \frac{2 \,{\left (315 \, \sqrt{b x + a} c^{2} + 42 \, c{\left (\frac{5 \,{\left ({\left (b x + a\right )}^{\frac{3}{2}} - 3 \, \sqrt{b x + a} a\right )} d}{b} + \frac{{\left (3 \,{\left (b x + a\right )}^{\frac{5}{2}} - 10 \,{\left (b x + a\right )}^{\frac{3}{2}} a + 15 \, \sqrt{b x + a} a^{2}\right )} e}{b^{2}}\right )} + \frac{21 \,{\left (3 \,{\left (b x + a\right )}^{\frac{5}{2}} - 10 \,{\left (b x + a\right )}^{\frac{3}{2}} a + 15 \, \sqrt{b x + a} a^{2}\right )} d^{2}}{b^{2}} + \frac{18 \,{\left (5 \,{\left (b x + a\right )}^{\frac{7}{2}} - 21 \,{\left (b x + a\right )}^{\frac{5}{2}} a + 35 \,{\left (b x + a\right )}^{\frac{3}{2}} a^{2} - 35 \, \sqrt{b x + a} a^{3}\right )} d e}{b^{3}} + \frac{{\left (35 \,{\left (b x + a\right )}^{\frac{9}{2}} - 180 \,{\left (b x + a\right )}^{\frac{7}{2}} a + 378 \,{\left (b x + a\right )}^{\frac{5}{2}} a^{2} - 420 \,{\left (b x + a\right )}^{\frac{3}{2}} a^{3} + 315 \, \sqrt{b x + a} a^{4}\right )} e^{2}}{b^{4}}\right )}}{315 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.28292, size = 433, normalized size = 2.69 \begin{align*} \frac{2 \,{\left (35 \, b^{4} e^{2} x^{4} + 315 \, b^{4} c^{2} - 420 \, a b^{3} c d + 168 \, a^{2} b^{2} d^{2} + 128 \, a^{4} e^{2} + 10 \,{\left (9 \, b^{4} d e - 4 \, a b^{3} e^{2}\right )} x^{3} + 3 \,{\left (21 \, b^{4} d^{2} + 16 \, a^{2} b^{2} e^{2} + 6 \,{\left (7 \, b^{4} c - 6 \, a b^{3} d\right )} e\right )} x^{2} + 48 \,{\left (7 \, a^{2} b^{2} c - 6 \, a^{3} b d\right )} e + 2 \,{\left (105 \, b^{4} c d - 42 \, a b^{3} d^{2} - 32 \, a^{3} b e^{2} - 12 \,{\left (7 \, a b^{3} c - 6 \, a^{2} b^{2} d\right )} e\right )} x\right )} \sqrt{b x + a}}{315 \, b^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 50.6685, size = 644, normalized size = 4. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1067, size = 320, normalized size = 1.99 \begin{align*} \frac{2 \,{\left (315 \, \sqrt{b x + a} c^{2} + \frac{210 \,{\left ({\left (b x + a\right )}^{\frac{3}{2}} - 3 \, \sqrt{b x + a} a\right )} c d}{b} + \frac{21 \,{\left (3 \,{\left (b x + a\right )}^{\frac{5}{2}} - 10 \,{\left (b x + a\right )}^{\frac{3}{2}} a + 15 \, \sqrt{b x + a} a^{2}\right )} d^{2}}{b^{2}} + \frac{42 \,{\left (3 \,{\left (b x + a\right )}^{\frac{5}{2}} - 10 \,{\left (b x + a\right )}^{\frac{3}{2}} a + 15 \, \sqrt{b x + a} a^{2}\right )} c e}{b^{2}} + \frac{18 \,{\left (5 \,{\left (b x + a\right )}^{\frac{7}{2}} - 21 \,{\left (b x + a\right )}^{\frac{5}{2}} a + 35 \,{\left (b x + a\right )}^{\frac{3}{2}} a^{2} - 35 \, \sqrt{b x + a} a^{3}\right )} d e}{b^{3}} + \frac{{\left (35 \,{\left (b x + a\right )}^{\frac{9}{2}} - 180 \,{\left (b x + a\right )}^{\frac{7}{2}} a + 378 \,{\left (b x + a\right )}^{\frac{5}{2}} a^{2} - 420 \,{\left (b x + a\right )}^{\frac{3}{2}} a^{3} + 315 \, \sqrt{b x + a} a^{4}\right )} e^{2}}{b^{4}}\right )}}{315 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]